package com.atguigu.yygh.shop.repository;

import com.atguigu.yygh.model.shop.Shop;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author cs
 * @create 2021/3/21
 * @desc
 */
@Repository
public interface ShopRepository extends MongoRepository<Shop,String> {
    //判断是否存在数据
    Shop getShopByShopcode(String shopcode);

    //根据商铺名称查询
    List<Shop> findShopByShopnameLike(String shopname);
}